import HttpHandler from "@/handler/HttpHandler";

export default class WorkOrder{
  constructor() {
    this.http=new HttpHandler();
  }
  submitReqMaterialDialog(data){
    const url='tie-demo/xuReqMaterial/submitReqMaterialDialog';
    return this.http.post(url,data);
  }
  add(data){
    const url='tie-demo/xuReqMaterial/add';
    return this.http.post(url,data);
  }
  update(data){
    const url='tie-demo/xuReqMaterial/update';
    return this.http.post(url,data);
  }
  getEnum(params){
    let url ="tie-system/resource/getEnum";
    return this.http.get(url,params);
  }
  queryListPage(data){
    const url = 'tie-demo/xuReqMaterial/queryListPage';
    return this.http.get(url,data);
  }
  batchChangeStatus(data) {
    let url = 'tie-demo/xuReqMaterial/batchChangeStatus';
    return this.http.post(url, data);
  }
  detail(data) {
    let url = 'tie-demo/xuReqMaterial/queryDetail';
    return this.http.get(url, data);
  }
  remove(data){
    let url = 'tie-demo/xuReqMaterial/remove';
    return this.http.post(url, data);
  }

}
